<extend name="./Application/Admin/View/Index/index.html"/>

<block name="box">
    <div class="view-product">
        <div class="info-center">
            <div class="manage-head">
                <h6 class="padding-left manage-head-con">用户优惠券详情</h6>
            </div>
            <div class="offcial-table input-table table-margin clearfix">
                <if condition="$res eq null">
                    <div class="tr non-info show border-bottom-none">
                        <span>此用户暂时没有优惠券</span>
                    </div>
                    <else />
                    <table class="table text-center">
                        <tr>
                            <!--<th class="text-center" style="width: 10px">ID</th>-->
                            <th class="text-center">优惠券名称</th>
                            <th class="text-center">优惠价格</th>
                            <th class="text-center">数量</th>
                            <!--<th class="text-center">已被领取</th>-->
                            <th class="text-center">最低使用金额</th>
                            <!--<th class="text-center">开启优惠券</th>-->
                            <th class="text-center" style="width: 150px;">开始时间</th>
                            <th class="text-center"style="width: 150px;">过期时间</th>
                            <th class="text-center">是否失效</th>
                            <th class="text-center">操作</th>

                        </tr>
                        <foreach  name="res" item="vo" key="k">
                            <tr>
                                <!--<td>{{$vo.id}}</td>-->
                                <td>{{$vo.name}}</td>
                                <td>¥{{$vo.cou_pri}}</td>
                                <td>{{$vo.num}}</td>
                                <!--<td>{{$vo.receive_num}}</td>&lt;!&ndash;已被领取数量&ndash;&gt;-->
                                <td>¥{{$vo.min_pri}}</td>
                                <!--<td>{{$vo['is_open']==0?'不开启':'开启'}}</td>-->
                                <!--<td>积分总数</td>-->
                                <td>{{$vo.begin_time}}</td>
                                <td>{{$vo.end_time}}</td>
                                <td>{{$vo['is_lose']==1?'未失效':'失效'}}</td>
                                <td>
                                    <!--<a class="layui-btn  layui-btn-sm" href="{{:U('Coupon/edit',array('id'=>$vo['id']))}}">编辑</a>-->
                                    <a class="layui-btn layui-btn-danger layui-btn-sm" href="{{:U('Coupon/del',array('id'=>$vo['id']))}}">删除</a>
                                </td>

                            </tr>
                        </foreach>
                    </table>
                    <div class="row center-block">
                        <div class="layui-col-md5 layui-col-md-offset5">
                            {{$page}}
                        </div>
                    </div>

                </if>

            </div>
        </div>
        <div class="show-page padding-big-right hidden">
            <div class="page">
            </div>
        </div>
    </div>

</block>
